/*
* author: wancheng
* date: 11/5/18
* desc:
*/

import Layout from '~/views/layout/Layout';


let constantRouterMap = [
  {path: '/404', component: () => import('../views/error/404'), hidden: true},
  // 首页`
  {
    path: '',
    component: Layout,
    redirect: 'home',
    children: [{
      path: 'home',
      component: () => import('../views/home/index2'),
      name: 'home',
      meta: {title: '监控', icon: 'excel', noCache: true}
    }]
  },
  //
  // {
  //   path: '/home2',
  //   component: Layout,
  //   redirect: '/home2/index',
  //   children: [{
  //     path: 'index',
  //     component: () => import('../views/home/index2'),
  //     name: 'home1',
  //     meta: {title: '监控2', icon: 'excel', noCache: true}
  //   }]
  // },

  // history
  {
    path: '/history',
    component: Layout,
    redirect: '/history/index',
    children: [
      {
        path: 'index',
        component: () => import('../views/history/index'),
        name: 'apiIndex',
        meta: {title: '历史记录', icon: 'international', noCache: true}
      }
    ]
  },


  // 一定要放在最后。
  {path: '*', redirect: '/404', hidden: true}
];


export {
  constantRouterMap
}
